<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Identificaci&oacute;n</title>
        <?php

        include_once ('head.php');

        ?>
    </head>
    <body>
        <?php
            include_once('cabecera.php');
            include_once('gestionIdentificacion.php');
            include_once('gestionRegistro.php');

            if(comprobarUsuarioIdentificado() == false){
                echo '<div id="general">';

                if(isset($_COOKIE['errorIdentificacion'])){
                    formularioLogin(true);
                }
                else{
                    formularioLogin(false);
                }

                enlaceRegistro();
                echo '</div>';
            }
            else{
                header('Location: principal.php');
            }

            include_once('piePagina.php');

        ?>
    </body>
</html>
